package ldkxingzhe.animation.chapter3;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.animation.Animation;
import android.view.animation.AnimationUtils;
import android.widget.TextView;

import ldkxingzhe.animation.R;

/**
 * Created by xingzhe on 15/11/3.
 */
public class TweenFirstActivity extends AppCompatActivity{
    private final String TAG = TweenFirstActivity.class.getSimpleName();

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.chapter3_tween_first_activity);
        TextView block1 = (TextView)findViewById(R.id.chapter3_block);
        Animation drop = AnimationUtils.loadAnimation(this,R.anim.chapter3_block_drop);
        block1.startAnimation(drop);
    }
}
